home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8553 < prev    next >
Encoding:
Text File  |  1996-08-05  |  3.1 KB  |  62 lines

  1. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++
  2. Path: newshub.cts.com!crash!telesoft!kst
  3. From: kst@thomsoft.com (Keith Thompson)
  4. Subject: Re: C/C++ knocks the crap out of Ada
  5. X-Nntp-Posting-Host: pulsar
  6. Message-ID: <DMwFqr.EGD@thomsoft.com>
  7. Originator: kst@pulsar
  8. Sender: news@thomsoft.com (USENET News Admin @flash)
  9. Organization: Thomson Software Products, San Diego, CA, USA
  10. References: <4etcmm$lpd@nova.dimensional.com>     <4f4ptt$a1c@newsbf02.news.aol.com> <4g1b7n$l5@mailhub.scitec.com.au> <JSA.96Feb16135027@organon.com>
  11. Date: Sat, 17 Feb 1996 02:47:14 GMT
  12.  
  13. Warning: this is off-topic (but interesting, IMHO).
  14.  
  15. In <JSA.96Feb16135027@organon.com> jsa@organon.com (Jon S Anthony) writes:
  16. > In article <4g1b7n$l5@mailhub.scitec.com.au> ramsesy@rd.scitec.com.au (Ramses Youhana) writes:
  17. > > Didn't NASA loose a satelite due to a bug in a piece of Ada code?
  18. > I don't think so.  I believe that the only confirmed case of a probe
  19. > loss due to software was a Venus probe which had Fortran code (the
  20. > problem was a "lexical" error concerning spaces not acting as lexical
  21. > separators).  The recent Mars probe that "vanished" was (last I saw)
  22. > thought to have been lost due to a small rupture in one of the on board
  23. > tanks.  This caused the ship to go into uncontrolled tumbling.  I don't
  24. > know what it was programmed with.
  25.  
  26. The story that a Venus probe was destroyed by a Fortran error has been
  27. widely propagated, but it's inaccurate.  The probe in question was
  28. Mariner 1, which was destroyed 4 minutes after launch on July 22, 1962.
  29. The real problem was a missing bar in a hand-written guidance equation.
  30. (A symbol in the equation that should have denoted smoothed velocity data;
  31. with the missing bar, it instead denoted raw velocity data).  This error,
  32. in combination with a hardware failure, caused the guidance system to
  33. think the rocket's velocity was fluctuating erratically, when in fact
  34. it was all right.  The automatic correction caused real fluctuations.
  35. As a result, the range safety operator had to destroy the missile, and
  36. the probe along with it.
  37.  
  38. The infamous Fortran error, in which a programmer means to type
  39.      DO 10 I = 1,10
  40. but instead types
  41.      DO 10 I=1.10
  42. which, due to Fortran's bizarre lexical rules, is interpreted by the
  43. compiler as
  44.      DO10I = 1.10
  45. actually occurred during Project Mercury.  An orbit computation program
  46. with this bug worked well enough for the early suborbital flights, but
  47. discrepancies started showing up on calculations for the later orbital
  48. flights.  The error was caught before it did any damage.
  49.  
  50. This is a summary of an article in the RISKS digest (newsgroup
  51. comp.risks), issue 8.75, dated May 27, 1989.  It should be available at
  52. the comp.risks archive site, <http://catless.ncl.ac.uk/Risks>, but I was
  53. unable to get through.  The information is credited to Paul Ceruzzi's book
  54. "Beyond the Limits -- Flight Enters the Computer Age".
  55.  
  56. -- 
  57. Keith Thompson (The_Other_Keith) kst@thomsoft.com
  58. TeleSoft^H^H^H^H^H^H^H^H Alsys^H^H^H^H^H Thomson Software Products
  59. 10251 Vista Sorrento Parkway, Suite 300, San Diego, CA, USA, 92121-2718
  60. "As God is my witness, I thought turkeys could fly." -- Arthur Carlson, WKRP
  61.